package com.syq.service;

import com.syq.bean.Student;

import java.util.List;

public interface StudentService {
    /**
     * /获取学生所有信息
     * @return
     */
    public List<Student> getStudents(String stuName,String stuNo,int sex,int pageIndex,int pageSize);

    /**
     *
     * @param stuName
     * @param stuNo
     * @param sex
     * @return
     */
    public int total(String stuName,String stuNo,int sex);

    /**
     *
     * @param student
     * @return
     */
    public int insertStu(Student student);

    /**
     * 主键查询
     * @param sid
     * @return
     */
    public  Student findById(int sid);

    /**
     * 修改学生
     * @param student
     * @return
     */
    public int updateStu(Student student);

    /**
     * 删除
     * @param sid
     * @return
     */
    public int delStu(String sid);
    public Student finByNo(String sno);
}
